<template>
	<view class="container">
		<customNavigation title="工作台" src="/static/images/nav_icon_back.png" src2="/static/images/nav_icon_logo.png" color="white" background="#32A238"></customNavigation>
		<view style="height: 11vh;"></view>
		
		<view>
			<view class="bgff shadow_bottom level_srcontainer fs28 col444"
				v-for="(item,index) in shortcutList" :key="index">
				<view>姓名：张三</view>
				<view class="pdTop10 pdBtm10">年龄：25岁</view>
				<view>简介：简介详情简介详情简介详情简介详情</view>
				<view class="pdTop10">CompanyCode：T0201</view>
			</view>
		</view>
		
		
		<view style="height: 100rpx;"></view>
		<view @click="goAddWork" class="tct colfff fs28 fixde_srt">点击新增</view>
		
	</view>
</template>

<script>
	import customNavigation from "@/components/custom-navigation.vue"
	export default {
		components:{
			customNavigation
		},
		data() {
			return {
				shortcutList:[]
			}
		},
		onLoad(options) {
			console.warn('[列表id]',options.id);
			this.GetShortcut(options.id)
		},
		methods:{
			
			// 获取文件夹中的事件菜单列表
			GetShortcut(event){
				let url = `http://120.79.220.26:8097/WorkOrderQuery/LoadQueryWhere`;
				this.$tools.axiosFrom('POST',url,{
					tableName:event //0快捷菜单，1文件夹
				})
				.then(res => {
					console.log('[key:A列表1]',res);
					if(res.Code ==200){
						if(res.Data.code ==0){
							console.log('[key:A列表2]',res.Data.data);
							this.shortcutList = res.Data.data
						}else{
							this.shortcutList = []
						}
					}else{
						this.shortcutList = []
					}
				})
			},
			
			goAddWork() {
				uni.navigateTo({
					url:`/pageOne/commonWork/commonWorkAdd`
				})
			}
		}
	}
</script>

<style>
	@import url("./oneone.css");
	page {
		background-color: #F5F5F5;
	}
	.level_srcontainer {
		width: 700rpx;
		box-sizing: border-box;
		border-radius: 8rpx;
		padding: 20rpx 25rpx;
		margin: 20rpx 25rpx 0rpx;
	}
	.fixde_srt {
		position: fixed;
		bottom: 0rpx;
		right: 0rpx;
		left: 0rpx;
		width: 750rpx;height: 100rpx;
		line-height: 100rpx;
		background-color: #32A238;
	}
</style>
